<?php
/**
 * LinkConfig.php
 *
 * @author camfee <camfee@foxmail.com>
 * @date   17-9-21 下午2:35
 *
 */

namespace Act;

use Common\ModuleBase;
use Common\Bridge;

class LinkConfig extends ModuleBase
{
    const FIELD_ID = 'Id';
    const FIELD_TYPE = 'Type';
    const FIELD_NAME = 'Name';
    const FIELD_LINK_URL = 'LinkUrl';
    const FIELD_CREATE_TIME = 'CreateTime';

    protected static $_conf = [
        'db' => [
            'w' => Bridge::DB_ACT_W,
            'r' => Bridge::DB_ACT_R
        ],
        'table' => 'LinkConfig',
        'fields' => [
            self::FIELD_ID => self::VAR_TYPE_KEY,
            self::FIELD_TYPE => self::VAR_TYPE_INT,
            self::FIELD_NAME => self::VAR_TYPE_STRING,
            self::FIELD_LINK_URL => self::VAR_TYPE_STRING,
            self::FIELD_CREATE_TIME => self::VAR_TYPE_STRING,
        ],
        'mc' => '',
        'mckey' => '',
        'mctime' => 0
    ];

    public static $URL_TYPE = [
        0 => 'http',
        1 => 'scheme'
    ];

    /**
     * @see ModuleBase::add() 新增
     * @see ModuleBase::update() 更新
     * @see ModuleBase::getInfoByIds() 按id查询
     * @see ModuleBase::getList() 条件查询
     * @see ModuleBase::delete() 删除
     */
}